<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body bgcolor="#FCFDEF" style="background-image: url('images/bg.jpg')">
	<form action="${pageContext.request.contextPath }/loginServlet" method="post">
		<h1 align="center" style="margin-top:50px;" ><font color="gray">登录</font></h1>
		<h2 align="center" style="margin-top:50px;"><font color="gray">没有帐号?请先</font><a href="register.jsp">注册</a></h2>
		
		<!-- 注释： 以下表格是注册使用的最简单的个人信息 -->
		<table align="center" width="300px" style="margin-top:70px;">
			<tr>
				
				<td colspan="1" align="center"><font color="red">${error_msg}</font></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td width="80%" colspan="2"><input type="text" name="username" class="form-control input-lg" 
				placeholder="用户名"/></td>
			</tr>
			<tr>
				<td width="80%" colspan="2"><input type="password" name="password" class="form-control input-lg" value="${pwd}"
				placeholder="密码" /></td>
			</tr>
			<tr><td align="left"><input style="padding-top: 10px;width: 20%"
			type="checkbox" name="remember"
			${flag==0?"":"checked = 'checked'"} />记住密码</td>
			<td align="left"><input type="checkbox" name="autoLogin"/>自动登录</td>
			</tr>
			<tr>
				<td colspan="3" align="center" style="padding-top:70px; "><input
					type="submit"
					style="border-radius: 10px; 		
			box-shadow: 5px 5px 5px #888888;padding: 10px 60px 10px 60px;
			background-color:#FCFDEF; border: 1px solid gray;color: black; "
					value="登录" /></td>
			</tr>
		</table>
	</form>
</body>
</html>